package com.my.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.my.entity.Menu;
import com.my.mapper.MenuMapper;
import com.my.service.MenuService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {

    @Override
    public List<Menu> getMenu(Long userId, Integer type) {
        return baseMapper.getMenu(userId, type);
    }

    @Override
    public List<Menu> getUserMenu(Long userId, Integer type) {
        return baseMapper.getUserMenu(userId, type);
    }

}
